package com.iye.puretennis.fragment;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.view.View;
import com.iye.puretennis.helper.DBManager;

/**
 * Author: Chuanbao on 2014/11/20.
 */
public abstract class TabFragment extends Fragment {
    protected Context mContext;
    protected DBManager dbManager;

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        mContext = activity.getApplicationContext();
        dbManager = new DBManager(activity);
    }

    /**
     * 更新页面
     */
   public abstract void updateUI();
}
